package com.mv.controller;

import com.mv.pojo.Recharge;
import com.mv.service.RechargeService;
import com.mv.vo.Form;
import com.mv.vo.SysResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@CrossOrigin
@RestController
@RequestMapping("/mv")
public class RechargeController {
    @Autowired
    private RechargeService rechargeService;
    @GetMapping("/recharge/getRechargeList")
    public SysResult getRechargeList() {
        List<Recharge> rechargeList=rechargeService.getRechargeList();
        return SysResult.success(rechargeList);
    }
}
